/**
 * FileName:GradeUtil
 * Author:lwl
 * Date:2018/1/19 17:44
 * Description:
 */
package com.winphone.uvam.utils;

public class GradeUtil {

    public static String getUserGrade(String grade){
        String gradeName = null;
        if(null != grade){
            switch (grade){
                case "1":
                    gradeName= "一年级";
                    break;
                case "2":
                    gradeName= "二年级";
                    break;
                case "3":
                    gradeName= "三年级";
                    break;
                case "4":
                    gradeName= "四年级";
                    break;
                case "5":
                    gradeName= "五年级";
                    break;
                case "6":
                    gradeName= "六年级";
                    break;
                case "7":
                    gradeName= "初一";
                    break;
                case "8":
                    gradeName= "初二";
                    break;
                case "9":
                    gradeName= "初三";
                    break;
                case "10":
                    gradeName= "高一";
                    break;
                case "11":
                    gradeName= "高二";
                    break;
                case "12":
                    gradeName= "高三";
                    break;
            }
        }
        return gradeName;
    }

    public static String getCourseGrade(String grade){
        String gradeName = null;
        if(null != grade){
            switch (grade){
                case "0":
                    gradeName= "幼升小";
                    break;
                case "1":
                    gradeName= "一年级";
                    break;
                case "2":
                    gradeName= "二年级";
                    break;
                case "3":
                    gradeName= "三年级";
                    break;
                case "4":
                    gradeName= "四年级";
                    break;
                case "5":
                    gradeName= "五年级";
                    break;
                case "6":
                    gradeName= "六年级";
                    break;
                case "7":
                    gradeName= "小升初";
                    break;
                case "8":
                    gradeName= "初一";
                    break;
                case "9":
                    gradeName= "初二";
                    break;
                case "10":
                    gradeName= "初三";
                    break;
                case "11":
                    gradeName= "初升高";
                    break;
                case "12":
                    gradeName= "高一";
                    break;
                case "13":
                    gradeName= "高二";
                    break;
                case "14":
                    gradeName= "高三";
                    break;
            }
        }
        return gradeName;
    }

}
